﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Groups.aspx.cs" Inherits="GPSTrackingClientsWebsiteManager.Espanol.Pages.Groups" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../../Javascript/jquery-1.8.0.min.js"></script>
    <script src="../../Javascript/messi.js"></script>
    <script src="../../Javascript/WindowMessagePlugin.js"></script>
    <link href="../../Css/messi.css" rel="stylesheet" />

    <link href="../../Css/GPSTrakingClientsWebsiteManager.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <fieldset>
            <legend>Lista de Grupos</legend>
            <telerik:RadGrid ID="GroupGrid" runat="server" Height="200px" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Metro" OnNeedDataSource="GroupGrid_NeedDataSource" OnUpdateCommand="GroupGrid_UpdateCommand" OnDeleteCommand="GroupGrid_DeleteCommand" OnInsertCommand="GroupGrid_InsertCommand">
                <MasterTableView CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Nuevo grupo" DataKeyNames="GroupID" EditMode="InPlace" NoMasterRecordsText="No hay grupos disponibles"
                    EditFormSettings-EditColumn-UpdateText="Actualizar"
                    EditFormSettings-EditColumn-CancelText="Cancelar"
                    EditFormSettings-EditColumn-EditText="Editar"
                    EditFormSettings-EditColumn-InsertText="Guardar"                    
                    CommandItemSettings-RefreshText="Refrescar"                    
                    >
                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

                    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>

                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>

                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" ItemStyle-Width="20px" EditText="Editar">
                        </telerik:GridEditCommandColumn>
                        <telerik:GridButtonColumn ConfirmText="¿Desea eliminar el grupo?" ConfirmDialogType="RadWindow" ItemStyle-Width="20px"
                            ConfirmTitle="Eliminar" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="100px"
                            ConfirmDialogWidth="220px">
                        </telerik:GridButtonColumn>
                        <telerik:GridBoundColumn DataField="GroupIdSource.GroupName" FilterControlAltText="Filter GroupName column" HeaderText="Nombre del Grupo" UniqueName="GroupName">
                        </telerik:GridBoundColumn>
                    </Columns>

                    <EditFormSettings>
                        <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
                    </EditFormSettings>
                </MasterTableView>

                <FilterMenu EnableImageSprites="False"></FilterMenu>
            </telerik:RadGrid>
        </fieldset>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="GroupGrid">
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadNotification1">
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadNotification ID="RadNotification1" runat="server" Position="TopRight" Skin="Metro" Text="Guardado" VisibleTitlebar="False">
        </telerik:RadNotification>
    </form>
</body>
</html>
